﻿@using ZX.Tools
@{
    ViewBag.Title = "招待明细-指效OA";
}

<div class='row page-content with-menu' style="margin-top:0;">
    <div class='panel'>
        <div class="panel-body">
            <table class='table table-hover table-striped table-bordered tablesorter table-data table-fixed' style="border: 1px solid #ddd;">
                <thead>
                    <tr class='text-center'>
                        <th class='w-60px'>序号</th>
                        <th class='text-left'>合同编号</th>
                        <th class='text-left'>合同名称</th>
                        <th class='text-left'>甲方</th>
                        <th class='text-left'>乙方</th>
                        <th class='text-left w-120px'>合同金额</th>
                        <th class='text-left'>使用印章名称</th>
                        <th class='text-left w-90px'>当前状态</th>
                        <th class='text-left w-150px'>申请时间</th>
                    </tr>
                </thead>
                <tbody id="tbList"></tbody>
            </table>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function () {
        getList();
    });
    function getList() {
        win.showLoading();
        var userId = @ViewBag.UserId;
        var startTime = '@ViewBag.StartTime';
        var endTime = '@ViewBag.EndTime';
        $.post("/ApprovalStatistical/GetMyAgreementcountDetailed", {
            userId: userId,
            startTime:startTime,
            endTime:endTime
        }, function (data) {
            win.hideLoading();
            if (data.Code == 200) {
                $("#tbList").html(data.Data);
            } else {
                win.alert("获取数据失败");
            }
        });
    }
</script>
